package files_controller_with_factory;

public class ExitCommandExecutor implements ICommandExecutor{
	public void execute(String string){
		System.exit(0);
	}
	
	private static ExitCommandExecutor instance;
	private ExitCommandExecutor(){			
	}
	public static ICommandExecutor getInstance(){
		if(instance==null){
			instance = new ExitCommandExecutor(); 
		}
		return instance;
	}
}


